//
//  IMIActiveObj.h
//  MiHome
//
//  Created by 阎超 on 12/01/2018.
//  Copyright © 2017 小米移动软件. All rights reserved.
//

#ifndef IMIActiveObj_h
#define IMIActiveObj_h

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, IMIActiveObjType) {
    IMIActiveObjType_Video = 0,
    IMIActiveObjType_Audio,
    IMIActiveObjType_Render,
    IMIActiveObjType_Other,
};

@interface IMIActiveObj : NSObject

typedef void (^ fOnRequestBlock)(id obj);

- (instancetype)initWithFlag:(IMIActiveObjType)type;
- (NSInteger)start:(BOOL)main block:(fOnRequestBlock)fblock;
- (NSInteger)stop;
- (NSInteger)putq:(id)obj;

@end

#endif /* IMIActiveObj_h */
